package org.bao.netcrawler.policy;

import java.util.ArrayList;

import org.bao.netcrawler.policy.model.Policy;
import org.bao.netcrawler.utils.XMLParser;

/**
 * 
 * generate <b>Policy</b>s by parsing one xml file.
 * @author Bao<bb@feijiao.info>
 * @since 2010-12-24
 * @version 0.9.0
 * @license GPLv3
 */
public class PolicyGen {
	public static ArrayList<Policy> gen(String filepath){
		XMLParser parser = new XMLParser(filepath);
		return parser.parse();
	}
}
